package org.qengine.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.qengine.entity.ClassEntity;
import org.springframework.stereotype.Service;

import java.util.List;


public interface ClassService extends IService<ClassEntity> {

    /**
     * 根据 classID 查询 class
     * @param classID
     * @return
     */
    ClassEntity getClassByID(Long classID);


    /**
     * 新增/修改班级信息
     * @param classEntity
     */
    ClassEntity updateClass(ClassEntity classEntity);

    /**
     * 根据班级id删除班级信息
     * @param classID
     * @return
     */
    int deleteClass(Long classID);

    List<ClassEntity> getAllClass();

}
